Update angular monorepo to v15 (major)#116
Merged
kodiakhq[bot] merged 1 commit intomainfrom Nov 17, 2022
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
14.2.11->15.0.014.2.11->15.0.014.2.11->15.0.014.2.11->15.0.0Release Notes
angular/angular
v15.0.0Compare Source
Blog post "Angular v15 is now available".
Breaking Changes
compiler
Keyframes names are now prefixed with the component's "scope name".
For example, the following keyframes rule in a component definition,
whose "scope name" is host-my-cmp:
@keyframes foo { ... }
will become:
@keyframes host-my-cmp_foo { ... }
Any TypeScript/JavaScript code which relied on the names of keyframes rules
will no longer match.
The recommended solutions in this case are to either:
NoneorShadowDomcompiler-cli
Invalid constructors for DI may now report compilation errors
When a class inherits its constructor from a base class, the compiler may now
report an error when that constructor cannot be used for DI purposes. This may
either be because the base class is missing an Angular decorator such as
@Injectable()or@Directive(), or because the constructor contains parameterswhich do not have an associated token (such as primitive types like
string).These situations used to behave unexpectedly at runtime, where the class may be
constructed without any of its constructor parameters, so this is now reported
as an error during compilation.
Any new errors that may be reported because of this change can be resolved either
by decorating the base class from which the constructor is inherited, or by adding
an explicit constructor to the class for which the error is reported.
Angular compiler option
enableIvyhas been removed as Ivy is the only rendering engine.core
14.[15-19].xand16.[10-12].x. Current supported versions of Node.js are14.20.x,16.13.xand18.10.x.srcorsrcdocpreceding other attributes. Such usages may need to be updated to ensure compliance with the new stricter rules around iframe bindings.forms
ControlValueAccessoris attached. You can opt-out withFormsModule.withConfigorReactiveFormsModule.withConfig.localize
canParsemethod has been removed from all translation parsers in@angular/localize/tools.analyzeshould be used instead.hintparameter in theparsemethods is now mandatory.router
RouterOutletwould immediatelyinstantiate the component being activated during navigation. Now the
component is not instantiated until the change detection runs. This
could affect tests which do not trigger change detection after a router
navigation. In rarer cases, this can affect production code that relies
on the exact timing of component availability.
relativeLinkResolutionis no longer configurable inthe Router. This option was used as a means to opt out of a bug fix.
Deprecations
common
DATE_PIPE_DEFAULT_TIMEZONEtoken is now deprecated in favorof the
DATE_PIPE_DEFAULT_OPTIONStoken, which accepts an objectas a value and the timezone can be defined as a field (called
timezone)on that object.
core
NgModuleto theprovidedInoption for@InjectableandInjectionTokenis now deprecated.providedIn: NgModulewas intended to be a tree-shakable alternative toNgModule providers. It does not have wide usage, and in most cases is used
incorrectly, in circumstances where
providedIn: 'root'should bepreferred. If providers should truly be scoped to a specific NgModule, use
NgModule.providersinstead.providedIn: 'any'for an@InjectableorInjectionTokenis now deprecated.providedIn: 'any'is an option with confusing semantics and is almostnever used apart from a handful of esoteric cases internal to the framework.
The bit field signature of
Injector.get()has been deprecated, in favor of the new options object.The bit field signature of
TestBed.inject()has been deprecated, in favor of the new options object.router
RouterLinkWithHrefdirective is deprecated, use theRouterLinkdirective instead. TheRouterLinkcontains the code from theRouterLinkWithHrefto handle elements withhrefattributes.common
provideLocationMocks()function to provide Location mocks (#47674)rawSrc->ngSrcin NgOptimizedImage directive (#47362)compiler
compiler-cli
strictInjectionParametersrequirement (#44615)enableIvyoptions (#47346)core
providedIn: NgModuleandprovidedIn: 'any'(#47616)isDevModeto rely onngDevMode(#47475)forms
setDisabledStateonControlValueAcessorwhen control is enabled (#47576)http
HttpClients to request via parents (#47502)provideHttpClientTestingprovider function (#47502)provideHttpClient()API (#47502)undefinedXSRF tokens (#47683)withLegacyInterceptorstowithInterceptorsFromDi(#47901)language-service
localize
canParsemethod from TranslationParsers (#47275)platform-server
router
relativeLinkResolutionusages (#47604)RouterLinkWithHrefintoRouterLink(#47630)RouterLinkWithHrefreferences toRouterLink(#47599)provideRouter()from usage in @Component (#47669)Special Thanks
Alan Agius, AleksanderBodurri, Alex Castle, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Charles Lyding, Dylan Hunn, Ferdinand Malcher, George Kalpakas, Jeremy Elbourn, Jessica Janiuk, JiaLiPassion, Joey Perrott, JoostK, Kara Erickson, Kristiyan Kostadinov, Martin Probst, Matthias Weiß, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Sabareesh Kappagantu, WD Snoeijer, angular-robot[bot], arturovt, ced, dario-piotrowicz, ivanwonder and jaybell
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate. View repository job log here.